Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

200
Views
My HTML input field is "readonly" by default since the last chrome update

Several users of my website came to explain to me that it was no longer possible to click on the checkboxes or to click on the "add a file" button (input type file)

I failed to reproduce the problem until I updated Google chrome to version 92.0.4515.107

And I could see that one of my CSS class override the default parameters because Google chrome considers my inputs as read only inputs

https://jsfiddle.net/Lfjctwb1/

Example :

<div class="form-check">
  <input class="form-check-input" type="checkbox" id="confirm-checkbox" required="">
  <label class="form-check-label" for="confirm-checkbox">
    <strong>I confirm</strong>
  </label>
</div>

<br>
<br> 

<input type="file" name="my_file" required />

My CSS class that override :

.disabled, input:read-only {
    pointer-events: none;
}

How to modify my class without having to modify all my inputs ?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This works as expected per spec and won't be fixed.

https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly https://html.spec.whatwg.org/multipage/semantics-other.html#selector-read-only

More information: https://bugs.chromium.org/p/chromium/issues/detail?id=1259187

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!